# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-stestr
pkgver=3.0.1
pkgrel=0
pkgdesc="A parallel Python test runner built around subunit"
url="http://stestr.readthedocs.io/en/latest/"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-voluptuous py3-yaml py3-subunit"
makedepends="py3-setuptools py3-pbr py3-testtools"
checkdepends="py3-cliff py3-future"
source="https://pypi.python.org/packages/source/s/stestr/stestr-$pkgver.tar.gz"
options="!check" # Requires an old package traceback2
builddir="$srcdir/stestr-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="2bc3219652fa7d4c1e5852ad83561dd7282c300c530b05d67c1b3883164dcf0e258d904c9583ed627ff23b0cb783dd21e76bbc66934a6b3545fe9ebf5e418925  stestr-3.0.1.tar.gz"
